<div class="category">
  Category
  <div  >
    <%if !@category.blank?%>
      <%= link_to "All",{:action =>"index"} %>
      <%  @category.each do |cat|%>
        <%= link_to "#{cat.title}",{:action =>"index",:cat=>"#{cat.id}"} %>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c60">&nbsp;</div>
<div class="ballot">
  <a class="subhead">Statement</a>
  <div class="scroll">
    <%if !@statement.nil?%>
      <%@statement.each_with_index do |state,index|%>
        <p class="index"><%= index + 1 %></p>
        <p class="message"><%= state.message %></p>
        <p class="author">created at :<%= state.created_at %> - by :<%= state.user.login %></p>
        <p class="count">agree : <%= state.agree %> | disagree : <%= state.disagree %> </p>
      <%end%>
    <%end%>
  </div>
  <%= will_paginate @statement, :page_param => params["statement_page"]  %>
</div>
<div class="clear c25">&nbsp;</div>
